from django.conf.urls.defaults import *
from feeds import LatestEntries,LatestEntriesByCategory,PostEntry
#from django.views.decorators.cache import cache_page
from blog.views import list_post,view_post
urlpatterns = patterns('',
    (r'^$', 'views.address'),
#    (r'^$', 'list_post'),
##    (r'^(?P<page>\d+)$', cache_page('list_post',60*15)),
##    (r'^post/(?P<id>\d+)', cache_page('view_post',60*15)),
#    (r'^(?P<page>\d+)$', 'list_post',),
#    (r'^post/(?P<id>\d+)', 'view_post',),
#    (r'^post/add/$', 'add_post'),
#    (r'^post/edit/(?P<id>\d+)', 'edit_post'),
#    (r'^post/delete/(?P<id>\d+)', 'delete_post'),
#    (r'^user/logout/$', 'logout'),
#    (r'^user/login/$', 'login'),
#    (r'^category/(?P<catalog>.+)/(?P<page>\d+)$', 'catalog'),
)



#feeds={
#       'latest':LatestEntries,
#       'categories':LatestEntriesByCategory,
#       'post':PostEntry,
#}
#
#urlpatterns += patterns('',
#    (r'^feeds/(?P<url>.*)/$','django.contrib.syndication.views.feed',{'feed_dict':feeds,}),
#)